const arr = [3, 2, 1, 3, 1, 2, 3, 5, 5, 4, 3, 6, 5, 4, 7, 3];


function disorder(array) {
  const len = array.length;
  let current = len - 1;
  let random;
  while (current >= 0) {
    random = Math.floor(len * Math.random());
    [array[random], array[current]] = [array[current], array[random]];
    current--
  }
  return array
}

console.log(disorder(arr))